#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
	int w = 4;
	int x = 3;
	int y = 2;
	int z = 1;
	int number = w < x ? w : z < y ? z : x;
	printf("%d\n",number);
	return 0;
}